package com.xwm93up.basic.enumtips;

/**
 * @Description: desc
 * @Author: xwm93up
 * @Since: 2021/11/27 17:19
 */
public class RoleContext {
    // 可更换的策略, 传入不同对象, 业务即相应变化
    private RoleOperation operation;

    public RoleContext(RoleOperation operation) {
        this.operation = operation;
    }

    public String execute() {
        return operation.op();
    }
}
